﻿@{
    ViewBag.Title = "Location";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>Location</h2>

<div id="content" style="width: 200px;height:200px;">
    欢迎进入
</div>
<br />
<input id="btnSubmit" type="button" value="刷新跳转" />
<br />
<br />
<br />
<input id="btnSubmit2" type="button" value="无刷新跳转" />

<script type="text/javascript">
    $('#btnSubmit').click(function () {
        window.location.href = 'location2';
    });
    $('#btnSubmit2').click(function () {
        $('#content').load('location2');
    });
</script>
